﻿namespace Kodefu
{
    using System;
    using System.Linq;

    public static class EdgeExtensions
    {
        public static INode<string, int> Combine(this IEdge<string, int> edge)
        {
            return new Node<string, int>(edge.Parent.Value.Combine(edge.Node.Value));
        }
    }
}
